package com.xiaoxiang.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (OrderInfo)表实体类
 *
 * @author haha
 * @since 2022-05-05 17:10:54
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderInfo extends Model<OrderInfo> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品json
     */
    private String goodsJson;

    /**
     * 总价
     */
    private String totalAmount;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 完成时间
     */
    private Date finishTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    private String state;

    /**
     * 支付订单id
     */
    private Long payOrderId;
}
